package com.go.where.family.dao.impl;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.go.where.family.dao.CourseDao;
import com.go.where.family.pojo.CourseInfo;

@Repository("courseDao")
public class CourseDaoImpl extends BaseDaoImpl<CourseInfo, String> implements
		CourseDao {

	@Override
	public String getNameSpace() {
		return "mybatis.xml.CourseMapper";
	}

	@Override
	public List<CourseInfo> queryGroupByBeginTime() {
		return getSqlSession().selectList(
				getNameSpace() + ".queryGroupByBeginTime");
	}

	@Override
	public List<CourseInfo> queryMonthCourseDetail(Map<String, Object> map) {
		return getSqlSession().selectList(
				getNameSpace() + ".queryMonthCourseDetail", map);
	}

}
